﻿<%@ Page Debug="true" Language="C#" MasterPageFile="~/_admin/admin.master"  
  Inherits="Eneta.Portal.FeedAggregator.FeedAggregatorJobManager, Eneta.Portal.FeedAggregator, Version=1.0.0.0, Culture=neutral, PublicKeyToken=53d887a3f906cc2b" %>
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" 
  Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="wssuc" TagName="InputFormSection" src="~/_controltemplates/InputFormSection.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="ButtonSection" src="~/_controltemplates/ButtonSection.ascx" %>

<asp:Content ID="Content1" ContentPlaceHolderID="PlaceHolderPageTitleInTitlearea" runat="server">
  Feeds Aggregator Cache Job Manager
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="PlaceHolderPageDescription" runat="server">

  Description....

</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="PlaceHolderMain" runat="server">
  <table width="100%" class="propertysheet" cellpadding="0" cellspacing="0" border="0">
    <tr><td class="ms-error"><asp:Literal ID="ErrorMessageLiteral" runat="server" EnableViewState="false" /> </td></tr>
  </table>
            <asp:Label runat="server" id="lblTest"></asp:Label>  
  <table border="0" cellspacing="0" cellpadding="0" width="100%">
    <tr>
      <td>
        <!-- web application selector -->
        <wssuc:InputFormSection runat="server"
                    Title="<%$Resources:spadmin, multipages_webapplication_title%>"
                    Description="<%$Resources:spadmin, multipages_webapplication_desc%>" >
          <Template_InputFormControls>
            <tr>
              <td>
                <SharePoint:WebApplicationSelector id="WebAppSelector" runat="server" 
                  OnContextChange="WebAppSelector_OnContextChange" />
              </td>
            </tr>
          </Template_InputFormControls>
        </wssuc:InputFormSection>
        
        <!-- job enabled/disabled -->
        <wssuc:InputFormSection runat="server"
                                  Title="Job enabled/disabled:"
                                  Description="Enable or disable this job.">
          <Template_InputFormControls>
            <tr valign="top">
              <td>
              <asp:RadioButtonList id="rblJobEnabled" runat="Server">
                <asp:ListItem Value="Enabled">Enabled</asp:ListItem>
                <asp:ListItem Value="Disabled">Disabled</asp:ListItem>
              </asp:RadioButtonList>
              </td>
            </tr>
          </Template_InputFormControls>
        </wssuc:InputFormSection>
        
        <!-- aggregator's web selector -->
        <wssuc:InputFormSection runat="server"
                                  Title="Aggregator web"
                                  Description="Select web which contains lists of aggregators.">
          <Template_InputFormControls>
            <tr valign="top">
              <td>
              <asp:DropDownList id="ddWebs" runat="server" >
              </asp:DropDownList>
              </td>
            </tr>
          </Template_InputFormControls>
        </wssuc:InputFormSection>
        
        <!-- aggregator's list selector -->
        <wssuc:InputFormSection runat="server"
                                  Title="Aggregator list"
                                  Description="Select list which contains definitions of aggregators.">
          <Template_InputFormControls>
            <tr valign="top">
              <td>
              <asp:DropDownList id="ddAggregatorList" runat="server" >
              </asp:DropDownList>
              </td>
            </tr>
          </Template_InputFormControls>
        </wssuc:InputFormSection>
        
        <!-- aggregator feeds list selector -->
        <wssuc:InputFormSection runat="server"
                                  Title="Aggregator's feed list"
                                  Description="Select list which contains definitions of aggregated feeds.">
          <Template_InputFormControls>
            <tr valign="top">
              <td>
              <asp:DropDownList id="ddAggregatorFeedList" runat="server" >
              </asp:DropDownList>
              </td>
            </tr>
          </Template_InputFormControls>
        </wssuc:InputFormSection>
        
        <!-- feed item cache list selector -->
        <wssuc:InputFormSection runat="server"
                                  Title="Feed items cache list"
                                  Description="Select list which contains cache of the aggregated feed items.">
          <Template_InputFormControls>
            <tr valign="top">
              <td>
              <asp:DropDownList id="ddFeedItemCacheList" runat="server" >
              </asp:DropDownList>
              </td>
            </tr>
          </Template_InputFormControls>
        </wssuc:InputFormSection>
        
        <!-- job runtime schedule type -->
        <wssuc:InputFormSection runat="server"
                                title="Schedule type">
          <Template_Description>Select schedule type for the job.</Template_Description>
          <Template_InputFormControls>
            <asp:DropDownList id="ddScheduleType" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ScheduleType_SelectedIndexChanged"></asp:DropDownList>
          </Template_InputFormControls>
        </wssuc:InputFormSection>
        
        <!-- job schedule parameters -->
        <wssuc:InputFormSection runat="server"
                                title="Schedule interval">
          <Template_Description>Select schedule parameters for the job.</Template_Description>
          <Template_InputFormControls>
            <asp:Panel runat="server" id="pnlMinuteInterval" visible="false">
            Run job every <asp:DropDownList id="ddMinuteInterval" runat="server"></asp:DropDownList> minutes
            </asp:Panel>
            <asp:Panel runat="server" id="pnlHourlySchedule" visible="false">
            None
            </asp:Panel>
            <asp:Panel runat="server" id="pnlDailySchedule" visible="false">
            Run job at 
            <asp:DropDownList id="ddDailyHour" runat="server"></asp:DropDownList> : 
            <asp:DropDownList id="ddDailyMinute" runat="server"></asp:DropDownList>
            </asp:Panel>
            <asp:Panel runat="server" id="pnlWeeklySchedule" visible="false">
            Run job at <asp:DropDownList id="ddWeeklyDay" runat="server"></asp:DropDownList> on
            <asp:DropDownList id="ddWeeklyHour" runat="server"></asp:DropDownList> : 
            <asp:DropDownList id="ddWeeklyMinute" runat="server"></asp:DropDownList>
            </asp:Panel>

          </Template_InputFormControls>
        </wssuc:InputFormSection>
        
        <wssuc:ButtonSection runat="server">
          <template_buttons>
            <asp:Button id="SetTimerJobsButton" runat="server" class="ms-ButtonHeightWidth" Text="OK" 
            OnClick="SetTimerJobsButton_OnClick" />
          </template_buttons>
        </wssuc:ButtonSection>
      </td>
    </tr>
  </table>
</asp:Content>
